package com.kingtown.inventory.net;

import com.kingtown.inventory.domain.bo.AssetAddBo;
import com.kingtown.inventory.domain.bo.AssetOutBo;
import com.kingtown.inventory.domain.bo.LoginBo;
import com.kingtown.inventory.domain.bo.SubmitBo;
import com.kingtown.inventory.domain.dto.AssetDto;
import com.kingtown.inventory.domain.so.AssetSo;
import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

import java.util.List;

public interface Request {
//    String HOST = "http://47.122.10.154:8092/prod-api/";
//    String HOST = "http://118.178.132.233:8001/burgeon/yali/";
//    String HOST = "https://v3dev.sjfx.com.cn/";
//    String HOST = "http://121.43.125.179:7415/api/";
    String HOST = "http://192.168.1.3:5320/api/";
//    String HOST = "http://192.168.26.21:5320/api/";
//    String HOST = "http://192.168.1.4:5320/api/";

    @POST("auth/login")
    Observable<Response> login(@Body LoginBo body);
    @POST("asset/all")
    Observable<Response> assetAll(@Body AssetSo body);

    @GET("client/list")
    Observable<Response> listClient();

    @GET("floor/list")
    Observable<Response> listFloor(@Query("clientId")String clientId);

    @GET("position/list")
    Observable<Response> listPosition(@Query("floorId")String floorId);

    @POST("inventory/submit")
    Observable<Response> submit(@Body SubmitBo bo);

    @POST("asset/add")
    Observable<Response> addAsset(@Body AssetAddBo bo);

    @POST("outbound/submit")
    Observable<Response> submitOutbound(@Body AssetOutBo bo);

//    @GET("tenant/openapi/v1/check-token")
//    Observable<Response> checkToken();
//
//    @GET("check-stock/openapi/v1/checkstock/list")
//    Observable<Response> listTask(@Query("page") Integer page,@Query("pageSize") Integer pageSize);
//
//    @GET("check-stock/openapi/v1/checkstock/stocks")
//    Observable<Response> taskDetail(@Query("page") Integer page,@Query("pageSize") Integer pageSize,@Query("id")String id);
//
//    @POST("check-stock/openapi/v1/checkstock/submit")
//    Observable<Response> submit(@Body SubmitBo bo);

}
